package com.chalmers.foa.gamehandlers;

import java.util.List;

import android.graphics.Point;

import com.chalmers.foa.gamemodel.gameobjects.IGameObject;
import com.chalmers.foa.util.NewList;

public interface ICollision {

	public void setScreenSize(Point size);

	public void setScreenSize(Point size, Point startPos);

	public void setObjectList(IGameObject[] objects);

	public void validateOffset(IGameObject object, Point offset);

	public void validateOffset(IGameObject object, Point offset,
			IGameObject[] collidingObjects);

	public void alignOffsetToObject(IGameObject object, Point offset,
			IGameObject otherObject);

	public boolean objectsAreColliding(IGameObject object, Point offset,
			IGameObject otherObject);

	public boolean objectOutsideWindowXAxis(IGameObject object, Point offset);

	public boolean objectOutsideWindowYAxis(IGameObject object, Point offset);

	public void objectsCollidingWithObject(IGameObject object, Point offset,
			List<IGameObject> collidingObjects);

	public void objectsCollidingWithObject(IGameObject object, Point offset,
			NewList collidingObjects);

}
